<script setup>
import {useRouter} from 'vue-router'

let $router = useRouter()
const goHome = () => {
    $router.push('/home')
}
</script>

<template>
    <div class="box">
        <div class="title"><p>抱歉，你要访问的页面不存在</p><button @click="goHome">返回首页</button></div>
        <img src="/public/img/404.png" alt="">
        
    </div>
</template>

<style scoped lang="scss">
.box{
    display: flex;
    flex-direction: column;
    // justify-content: center;
    align-items: center;
    width: 100vw;
    height: 100vh;
    .title {
        display: flex;
        align-items: center;
        // justify-content: space-between;
        // width: 20vw;
        margin-top: 50px;
        button{
            margin-left: 10px;
        }
    }
    img{
        width: 50vw;
    }
    // background-color: rgb(238, 238, 238);
}
</style>